Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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!

About

Just Objects Prototype

Resources

License

Releases

No releases published

Packages

No packages published