public void setUp() { _bus = MockRepository.GenerateMock <IMessageBus>(); _fsService = new FakeFileSystemService(); _cache = new FakeCache(); _crawler = new ProjectCrawler(_cache, _fsService, _bus); }
public async Task GetProfilePictureShouldReturnFileStreamResult() { // ARRANGE var fakeFileSystemService = new FakeFileSystemService(); var usersController = new UsersController(null, fakeFileSystemService) .WithClaimPrincipal(TestUser); // ACT IActionResult result = await usersController.GetProfilePicture(); // ASSERT Assert.IsType <FileStreamResult>(result); }
public void SetUp() { _fs = new FakeFileSystemService(); _parser = new ProjectParser(_fs); }
public void SetUp() { _config = MockRepository.GenerateMock <IConfiguration>(); _fs = new FakeFileSystemService(); _parser = new ProjectParser(_fs, _config); }