public AccountControllerTest() { _service = Substitute.For <IAccountService>(); _controller = new AccountController(_service); _request = _fixture.Create <AccountRequest>(); _id = _fixture.Create <int>(); _requestSituation = _fixture.Create <AccountSituationRequest>(); }
public AccountServiceTest() { _repository = Substitute.For <IAccountRepository>(); _service = new AccountService(_repository); _account = _fixture.Create <Account>(); _request = _fixture.Create <AccountRequest>(); _id = _fixture.Create <int>(); _response = _fixture.Create <AccountResponse>(); _requestSituation = _fixture.Create <AccountSituationRequest>(); }