public void TestSuccess()
        {
            var validator = new ValidationGroups();
            var sampleRq  = new EmployeeBuilder().JohnDoe().BuildAddRequest();

            var errors = validator.Validate(sampleRq, sampleRq.GetType());

            Assert.IsTrue(!errors.Any());
        }
        public void TestFutureFields()
        {
            var validator = new ValidationGroups();
            var sampleRq  = new EmployeeBuilder().JohnDoe().DateInFuture().BuildAddRequest();

            var errors = validator.Validate(sampleRq, sampleRq.GetType());

            Assert.IsTrue(errors.Count() == 1);
        }
        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);
        }