public async Task SearchByDateTest1() { SetMockContext("jablonskim"); DateSearchingModel model = new DateSearchingModel() { MinimalDate = new DateTime(2015, 12, 20), SortBy = SortBy.Price, SortType = SortType.Ascending, Username = "******", ShowPartiallyMatchingResults = true }; var result = await _controller.Date(model); Assert.IsNotNull(result); Assert.AreEqual(2, model.Offers.Count()); }