Just Objects Prototype
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
JustObjectsPrototype
.gitignore
LICENSE
README.md
appveyor.yml
screenshot.png

README.md

JOP - JustObjectsPrototype

Create only your domain objects and get a prototype shell for free.

Build status Version

How To Use

Just create a new .NET 4.5 Console Application and add POCO classes that implement your domain, like in the example below.

public class Invoice
{
   public Customer Receiver { get; set; }
   public decimal Amount { get; set; }

   public void Increase()
   {
      Amount += 1;
   }
}
public class Customer
{
   public string Name { get; set; }
   public override string ToString()
   {
      return Name;
   }

   public Invoice Bill(decimal amount) 
   {
      return new Invoice 
      {
         Receiver = this,
         Amount = amount,
      };
   }
}

Now that you modelled your prototype domain, "Install-Package JOP" and show the prototype UI using a fluent and natural language like API.

[STAThreadAttribute()]
public static void Main()
{
   var customers = new List<Customer> 
   {
      new Customer { Name = "Max Musterman" }
   };

   Show.Prototype(With.These(customers));
}

This gets you a UI like in the screenshot below, where you can then create and delete instances of your types and invoke their methods, to bill customers for example. Screenshot

Happy prototyping!