public void CreateWeight_AllPropertiesValid_DoesNotThrowArgumentException()
 {
     //Arrange
     Mock<AccessTokenManagerBaseStub> tokenManager = new Mock<AccessTokenManagerBaseStub>();
     WeightEndpoint weightRequest = new WeightEndpoint(tokenManager.Object, new UsersModel());
     //Act and Assert
     Assert.DoesNotThrow(() => { weightRequest.CreateWeight(ValidWeightNew); });
 }
 public void CreateWeight_AllMeasurementsNull_ArgumentException()
 {
     //Arrange
     Mock<AccessTokenManagerBaseStub> tokenManager = new Mock<AccessTokenManagerBaseStub>();
     WeightEndpoint weightRequest = new WeightEndpoint(tokenManager.Object, new UsersModel());
     //Act
     ValidWeightNew.Bmi = null;
     ValidWeightNew.FatPercent = null;
     ValidWeightNew.FreeMass = null;
     ValidWeightNew.MassWeight = null;
     ValidWeightNew.Weight = null;
     //Assert
     Assert.Throws(typeof(ArgumentException), () => { weightRequest.CreateWeight(ValidWeightNew); });
 }