public void Controller_Delete_Should_Be_NotFound() { var fixture = new DbContextFixture(); var logger = new Mock <ILogger <ReportStatesController> >().Object; var repository = new ReportStateRepository(fixture.context); var controller = new ReportStatesController(logger, repository); var eid = ReportStateEntityTypeConfiguration.ReportStateSeed.ElementAt(1).Id; ActionResult <ReportState> result = controller.Delete(eid); result.Result.Should().BeOfType <NotFoundResult>(); }