Пример #1
0
        public async Task ShipperDeleteDeletes()
        {
            //Arrange
            Shippers shipperTest = new Shippers()
            {
                CompanyName = "Nero", Phone = "0240-555-555"
            };
            await _shippersControllerTest.Create(shipperTest);

            int expected = db.Shippers.Count() - 1;

            //Act
            await _shippersControllerTest.DeleteConfirmed(shipperTest.ShipperID);

            int actual = db.Shippers.Count();

            //Assert
            Assert.AreEqual(expected, actual);
        }