public void Delete_DeleteItem_ItemRemoved() { // arrange InMemoryWarehouseRepository inmemorywarehouserepository = new InMemoryWarehouseRepository(); inmemorywarehouserepository.Add(new Warehouse(1, 10, 10)); // act inmemorywarehouserepository.Delete(new Warehouse(1, 10, 10)); // assert Assert.IsNull(inmemorywarehouserepository.GetById(1)); }