public void SetUp() { _clientStub = new List <Client>(); _clientStub.Add(ClientProvider.GetOneTestClient()); _clientsStub = ClientProvider.GetAllTestClients(); _mockAuthService = new Mock <IAuthenticationService>(); _mockRepository = new Mock <IClientRepository>(); _mockService = new Mock <IPaginationService>(); _mockService .Setup(s => s.Page) .Returns(1); _mockService .Setup(s => s.PageSize) .Returns(10); _user = new ClaimsPrincipal(new ClaimsIdentity(new Claim[] { new Claim(ClaimTypes.Name, "Alice"), new Claim(ClaimTypes.NameIdentifier, "1"), }, "mock")); }