Exemplo n.º 1
0
        public async Task AddClientAsync_ClientIsAdded()
        {
            using (var db = new ProjectContext(Utilities.TestDbContextOptions()))
            {
                // Arrange
                var recId          = "10";
                var expectedClient = new Client()
                {
                    Id = recId, Name = "Juan"
                };

                // Act
                await db.AddClientAsync(expectedClient);

                // Assert
                var actualClient = await db.FindAsync <Client>(recId);

                Assert.Equal(expectedClient, actualClient);
            }
        }