public async Task Selects_All_Types() { // Arrange var expected = 2; using (var context = new DueltankDbContext(_dbContextOptions)) { context.Type.Add(new Type { Name = "Earth", Created = DateTime.UtcNow, Updated = DateTime.UtcNow }); context.Type.Add(new Type { Name = "Water", Created = DateTime.UtcNow, Updated = DateTime.UtcNow }); context.SaveChanges(); } // Act var result = await _sut.AllTypes(); // Assert result.Count.Should().Be(expected); }