public void EndDateTime_IsSet_WhenCreated() { // Arrange // Act SlotForResponse sut = CreateSut(); // Assert Assert.Equal(DateTime.Parse("2015-01-03"), sut.EndDateTime); }
public void Id_IsSet_WhenCreated() { // Arrange // Act SlotForResponse sut = CreateSut(); // Assert Assert.Equal(1, sut.Id); }
public void Status_IsSet_WhenCreated() { // Arrange // Act SlotForResponse sut = CreateSut(); // Assert Assert.Equal(SlotStatus.Open, sut.Status); }
private SlotForResponse CreateSut() { var slot = Substitute.For <ISlot>(); slot.Status = SlotStatus.Open; slot.StartDateTime = DateTime.Parse("2015-01-02"); slot.EndDateTime = DateTime.Parse("2015-01-03"); slot.DayId.Returns(2); slot.Id.Returns(1); var sut = new SlotForResponse(slot); return(sut); }
private SlotForResponse CreateSut() { var slot = Substitute.For <ISlot>(); slot.Status = SlotStatus.Open; slot.StartDateTime = DateTime.Parse("2015-01-02"); slot.EndDateTime = DateTime.Parse("2015-01-03"); slot.DayId.Returns(2); slot.Id.Returns(1); var sut = new SlotForResponse(slot); return sut; }