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 DeleteWeightAsync_UriValid_DoesNotThrowArgumentException()
 {
     //Arrange
     var validPath = "/test/";
     Mock<AccessTokenManagerBaseStub> tokenManager = new Mock<AccessTokenManagerBaseStub>();
     WeightEndpoint weightRequest = new WeightEndpoint(tokenManager.Object, new UsersModel { Weight = validPath });
     //Act and Assert
     Assert.DoesNotThrow(() => { weightRequest.DeleteWeightAsync(() => { }, (ex) => { }, validPath); });
 }
 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); });
 }
 public void DeleteWeight_UriNotValid_ArgumentException()
 {
     //Arrange
     var validPath = "/test/";
     Mock<AccessTokenManagerBaseStub> tokenManager = new Mock<AccessTokenManagerBaseStub>();
     WeightEndpoint weightRequest = new WeightEndpoint(tokenManager.Object, new UsersModel { Weight = validPath });
     //Act and Assert
     Assert.Throws(typeof(ArgumentException), () => { weightRequest.DeleteWeight("Not validPath."); });
 }