예제 #1
0
        public void WhenSessionInitializedWithName_WinIdShouldHaveValue()
        {
            var tfsProvider = new Mock<ITFSProvider>();

            tfsProvider
                .Setup(d => d.GetTFSDisplayName(It.Is<string>(windowsID => windowsID == @"domain\MIKADO")))
                .Returns(() => "Speed of the Night");

            var session = new Session(tfsProvider.Object);

            var subject = session.CreateSession(@"domain\MIKADO");

            subject.WindowsIdentityName.Should().Be(@"domain\MIKADO");
        }
예제 #2
0
        public void WhenSessionInitialized_IsNotNull()
        {
            var subject = new Session();

            subject.Should().NotBeNull();
        }