| 123456789101112131415161718 |
- namespace Diligent.WebAPI.Tests.Controllers
- {
- public class ScheduleControllerTests
- {
- private IScheduleService _scheduleService = Substitute.For<IScheduleService>();
-
- [Fact]
- public async Task GetSchedule_ShouldReturn_200OK_Always()
- {
- _scheduleService.When(x => x.GetScheduleForCertainPeriod(Arg.Any<int>(), Arg.Any<int>())).Do(x => { });
- ScheduleController scheduleController = new(_scheduleService);
-
- var result = await scheduleController.GetSchedule(1000, 1000);
-
- (result as OkObjectResult).StatusCode.Should().Be(200);
- }
- }
- }
|