public void GoodCustomer_ReturnsExpectedUserId() { // arrange Guid expected = new Guid(GOOD_USER_ID); UserSelectedContext fakeCustomer = new UserSelectedContext() { BranchId = "FDF", CustomerId = "123456" }; IRecentlyViewedListHeadersRepository repo = MakeRepo(); // act RecentlyViewedListHeader result = repo.GetRecentlyViewedHeader(Guid.Parse(GOOD_USER_ID), fakeCustomer); // assert result.UserId .Should() .Be(expected); }
public RecentlyViewedListLogicImpl(IRecentlyViewedListHeadersRepository headersRepo, IRecentlyViewedListDetailsRepository detailsRepo) { _headersRepo = headersRepo; _detailsRepo = detailsRepo; }