public async Task Work_Type_Repository_Should_Remove_Work_Type_Async() { // Arrange var context = TestSetUpHelper.CreateDbContext(); var repository = new WorkTypeRepository(context); var expectedEntity = new WorkType() { Id = 40, Name = "TestName", EstimatedTime = 1, EstimatedCost = 100 }; await repository.AddAsync(expectedEntity); await context.SaveChangesAsync(); // Act await repository.RemoveAsync(expectedEntity.Id); await context.SaveChangesAsync(); var actualEntity = await repository.GetByIdAsync(expectedEntity.Id); // Assert Assert.Null(actualEntity); }