Beispiel #1
0
        public async Task DeleteCommand_Asynchronous_Should_Return_Validation_Result()
        {
            var service = new BusinessServiceBaseMock(new PersonProxyStub());
            var result  = await service.DeleteCommand(0).ExecuteAsync();

            result.Errors.Count().ShouldBe(1);
        }
Beispiel #2
0
        public void DeleteCommand_Synchronous_Should_ReturnValidation_Result()
        {
            var service = new BusinessServiceBaseMock(new PersonProxyStub());
            var result  = service.DeleteCommand(0).Execute();

            result.Errors.Count().ShouldBe(1);
        }