Esempio n. 1
0
        public void IsSignedIn_ShouldReturnTrueWhenTheCustomerIsSignedIn()
        {
            //Arrange
            var fakeHttpContext = FakeFactory.FakeHttpContextWithCustomerAuthenticationSetTo(true);

            var cookieAuth = new CookieAuthentication(fakeHttpContext);

            var email        = fixture.CreateAnonymous <string>();
            var customerData = fixture.CreateAnonymous <Customer>();
            //Act
            var signedin = cookieAuth.IsSignedIn();

            //Assert

            signedin.Should().BeTrue();
        }