public void UserProfileShouldBeUpdatedBasedOffRequest()
        {
            ChangeProfileSettingsRequest request = new ChangeProfileSettingsRequest
            {
                Email          = "*****@*****.**",
                Height         = 70,
                UnitsOfMeasure = MeasurementSystem.Imperial
            };

            _changeProfileSettingsHandler.Handle(request);

            BodyFitTrackerContext bodyFitTrackerContext = DatabaseConnectionFactory.GetInMemoryDatabase(false);
            AppUser appUser = bodyFitTrackerContext.AppUsers.Where(x => x.AppUserId == _userId).First();

            Assert.AreEqual("*****@*****.**", appUser.Email);
            Assert.AreEqual(70, appUser.Height);
        }
Beispiel #2
0
 public void ChangeProfileSettings(ChangeProfileSettingsRequest changeProfileSettingsRequest)
 {
     _changeProfileSettingsHandler.Handle(changeProfileSettingsRequest);
 }