public async Task CreateFacultyUseCaseNotNullInput() { var output = new Mock <CreateFacultyPresenter>().Object; var useCase = new CreateFacultyUseCase( facultyRepository, output); await useCase.Execute(new CreateFacultyInput("", new Domain.Entities.User(), new Domain.Entities.User())); Assert.NotNull(output); Assert.True(output.ViewModel is OkObjectResult); }
public async Task CreateFacultyUseCaseNullInput() { var output = new Mock <CreateFacultyPresenter>().Object; var useCase = new CreateFacultyUseCase( facultyRepository, output); await useCase.Execute(null); Assert.NotNull(output); Assert.True(output.ViewModel is BadRequestObjectResult); }