public void CanUpdateValidStoryteller_ReturnStoryteller() { Storyteller storyteller = new Storyteller("Name", 0, true, "img.png", "About", 18) { Id = "5050241f-a600-4d64-8634-0de904c043c1", AccessFailedCount = 0, EmailConfirmed = false, PhoneNumberConfirmed = false, TwoFactorEnabled = false, LockoutEnabled = false, UserName = "******", NormalizedUserName = "******", Email = "*****@*****.**", NormalizedEmail = "*****@*****.**", PasswordHash = "Pasfjdsasd", ConcurrencyStamp = "fjjffjfjf", LockoutEnd = DateTime.Now, PhoneNumber = "885553531", SecurityStamp = "Securitystamp", }; IStorytellerCRUD storytellerService1 = new StorytellerService(); IStorytellerCRUD storytellerService2 = new StorytellerService(); IStorytellerCRUD storytellerService3 = new StorytellerService(); storytellerService1.CreateStoryteller(storyteller); var result = storytellerService2.UpdateStoryteller(storyteller); storytellerService3.DeleteStorytellerById(storyteller.Id); Assert.AreEqual(storyteller, result.Result); }
public async Task CannotUpdateInvalidStoryteller_ReturnException() { Storyteller storyteller = null; IStorytellerCRUD storytellerService = new StorytellerService(); await storytellerService.UpdateStoryteller(storyteller); }