コード例 #1
0
        public async Task CannotAdd_Customer_UsingExistingName()
        {
            CustomerViewModel testCustomer = new CustomerViewModel {
                Name = "Braedon Hasen"
            };
            await controller.AddCustomer(testCustomer);

            Assert.That(!controller.AddCustomer(testCustomer).Result);
        }