public async void GetById4ReturnsNull() { await using (var inbox = new InboxService(MakeInMemoryContext())) { // Act var item = await inbox.GetById(4); // Assert Assert.Null(item); } }
public async void GetById2ReturnsSecondInbox() { await using (var inbox = new InboxService(MakeInMemoryContext())) { // Act var item = await inbox.GetById(2); // Assert Assert.NotNull(item); Assert.Equal(2, item.Id); Assert.Equal("Do second", item.Value); } }