public void GetReturnsCorrectJsonBehavior(DisabledDatesController sut, int year, int month) { var actual = sut.Get(year, month); Assert.Equal(JsonRequestBehavior.AllowGet, actual.JsonRequestBehavior); }
public void GetReturnsCorrectDataType(DisabledDatesController sut, int year, int month) { JsonResult actual = sut.Get(year, month); Assert.IsAssignableFrom<string[]>(actual.Data); }
public void GetReturnsCorrectJsonBehavior(DisabledDatesController sut, int year, int month) { var actual = sut.Get(year, month); Assert.Equal(JsonRequestBehavior.AllowGet, actual.JsonRequestBehavior); }
public void GetReturnsCorrectDataType(DisabledDatesController sut, int year, int month) { JsonResult actual = sut.Get(year, month); Assert.IsAssignableFrom <string[]>(actual.Data); }
public void GetReturnsCorrectModel( [Frozen]Mock<IReader<Month, IEnumerable<string>>> readerStub, string[] expected, DisabledDatesController sut, int year, int month) { readerStub .Setup(r => r.Query(It.Is<Month>(m => m.Year == year && m.MonthNumber == month))) .Returns(expected); var actual = sut.Get(year, month); Assert.Equal(expected, actual.Data); }
public void GetReturnsCorrectModel( [Frozen] Mock <IReader <Month, IEnumerable <string> > > readerStub, string[] expected, DisabledDatesController sut, int year, int month) { readerStub .Setup(r => r.Query(It.Is <Month>(m => m.Year == year && m.MonthNumber == month))) .Returns(expected); var actual = sut.Get(year, month); Assert.Equal(expected, actual.Data); }
public void SutIsController(DisabledDatesController sut) { Assert.IsAssignableFrom <IController>(sut); }
public void SutIsController(DisabledDatesController sut) { Assert.IsAssignableFrom<IController>(sut); }