Example #1
0
        public async void GetAllReturnsAllInboxes()
        {
            await using (var inbox = new InboxService(MakeInMemoryContext()))
            {
                // Act
                var inboxes = await inbox.GetAll();

                // Assert
                Assert.Collection(inboxes,
                                  item => Assert.Equal(1, item.Id),
                                  item => Assert.Equal(2, item.Id));
            }
        }