Beispiel #1
0
 public async ValueTask <bool> AddAuthorAsync(Authors author)
 {
     return(await Provider.AddAuthorAsync(author));
 }
 public void AddAuthorTest()
 {
     Authors authors = new Authors() { Name = "test", Surname = "test", MiddleName = "test", Email = "test@test", SecurityLabel = 2 };
     var result = provider.AddAuthorAsync(authors).Result;
     Assert.IsTrue(result);
 }