public void TestNoDefaultValidationAvailable() { // Need to move to :InterceptAttribute IOCContainer.Configure(); var provider = IOCContainer.Get <Orchestration>(); provider.UpdateEmployee(null); }
public void TestDefaultOrchastrationFail() { var sampleRq = new EmployeeBuilder().JohnDoe().DateInFuture().BuildAddRequest(); // Need to move to :InterceptAttribute IOCContainer.Configure(); var provider = IOCContainer.Get <Orchestration>(); provider.AddEmployee(sampleRq); }
public void TestValidationSuccessfull() { var sampleRq = new EmployeeBuilder().JohnDoe().BuildAddRequest(); // Need to move to :InterceptAttribute IOCContainer.Configure(); var provider = IOCContainer.Get <Orchestration>(); var outcome = provider.AddEmployee(sampleRq); Assert.IsTrue(outcome); }
public void Configure(object contextInfo = null) { IOCContainer.Configure(contextInfo); }