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);
        }
예제 #4
0
 public void Configure(object contextInfo = null)
 {
     IOCContainer.Configure(contextInfo);
 }