public async Task AddGetProfile() { await store.AddProfile(testProfile); var profile = await store.GetProfile(testProfile.Username); Assert.AreEqual(testProfile, profile); }
public async Task AddInvalidProfile(string username, string firstName, string lastName) { try { var profile = new UserProfile(username, firstName, lastName); await store.AddProfile(profile); Assert.Fail($"Expected {nameof(ArgumentException)} was not thrown"); } catch (ArgumentException) { } }
public async Task AddProfile_StorageIsUnavailable() { await store.AddProfile(testProfile); }