public void CreateInstance_ShouldBeOfTypeInvalidOperationException() { // Arrange var authFactorValidatorFactory = new GameGameAuthenticationValidatorFactory(new List <IAuthenticationValidatorAdapter>()); // Act var action = new Action(() => authFactorValidatorFactory.CreateInstance(Game.LeagueOfLegends)); // Assert action.Should().Throw <InvalidOperationException>(); }
public void CreateInstance_ShouldBeOfTypeGameAdapter() { // Arrange var factory = new GameGameAuthenticationValidatorFactory( new[] { new LeagueOfLegendsAuthenticationValidatorAdapter(TestMock.LeagueOfLegendsService.Object, TestMock.GameAuthenticationRepository.Object) }); // Act var result = factory.CreateInstance(Game.LeagueOfLegends); // Assert result.Should().BeOfType <LeagueOfLegendsAuthenticationValidatorAdapter>(); }