public void CreateSleep_AllPropertiesValid_DoesNotThrowArgumentException()
 {
     //Arrange
     Mock<AccessTokenManagerBaseStub> tokenManager = new Mock<AccessTokenManagerBaseStub>();
     SleepEndpoint sleepRequest = new SleepEndpoint(tokenManager.Object, new UsersModel());
     //Act and Assert
     Assert.DoesNotThrow(() => { sleepRequest.CreateSleep(ValidSleepNew); });
 }
 public void CreateSleep_AllMeasurementsNull_ArgumentException()
 {
     //Arrange
     Mock<AccessTokenManagerBaseStub> tokenManager = new Mock<AccessTokenManagerBaseStub>();
     SleepEndpoint sleepRequest = new SleepEndpoint(tokenManager.Object, new UsersModel());
     //Act
     ValidSleepNew.Awake = null;
     ValidSleepNew.Deep = null;
     ValidSleepNew.Light = null;
     ValidSleepNew.Rem = null;
     ValidSleepNew.TimesWoken = null;
     ValidSleepNew.TotalSleep = null;
     //Assert
     Assert.Throws(typeof(ArgumentException), () => { sleepRequest.CreateSleep(ValidSleepNew); });
 }