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"); }
public void WhenSessionInitialized_IsNotNull() { var subject = new Session(); subject.Should().NotBeNull(); }