Ejemplo n.º 1
0
        public void Manager_AddInstance_GetInstance_AutoFixture_Alias()
        {
            // DEMO change .GetAlias
            ParametersManager parametersManager = new ParametersManager();

            Fixture fixture = new Fixture();
            FileParameterDescriptor fileParameterDescriptor = fixture.Create <FileParameterDescriptor>();

            parametersManager.AddParameter(fileParameterDescriptor);

            Assert.That(parametersManager.GetAlias(fileParameterDescriptor.Id), Is.SameAs(fileParameterDescriptor.Alias));
        }
Ejemplo n.º 2
0
        public void Manager_AddInstance_GetInstance_AutoFixture_AbstractType()
        {
            // DEMO add IFileData
            ParametersManager parametersManager = new ParametersManager();

            Fixture fixture = new Fixture();
            //..add Register
            FileParameterDescriptor fileParameterDescriptor = fixture.Create <FileParameterDescriptorEx>();

            parametersManager.AddParameter(fileParameterDescriptor);

            Assert.That(parametersManager.GetAlias(fileParameterDescriptor.Id), Is.SameAs(fileParameterDescriptor.Alias));
        }
        public void Manager_AddInstance_GetInstance_AutoFixture_AbstractType()
        {
            // DEMO add IFileData
            ParametersManager parametersManager = new ParametersManager();

            Fixture fixture = new Fixture();
            //..add Register
            FileParameterDescriptor fileParameterDescriptor = fixture.Create<FileParameterDescriptorEx>();

            parametersManager.AddParameter(fileParameterDescriptor);

            Assert.That(parametersManager.GetAlias(fileParameterDescriptor.Id), Is.SameAs(fileParameterDescriptor.Alias));
        }
        public void Manager_AddInstance_GetInstance_AutoFixture_Alias()
        {
            // DEMO change .GetAlias
            ParametersManager parametersManager = new ParametersManager();

            Fixture fixture = new Fixture();
            FileParameterDescriptor fileParameterDescriptor = fixture.Create<FileParameterDescriptor>();

            parametersManager.AddParameter(fileParameterDescriptor);

            Assert.That(parametersManager.GetAlias(fileParameterDescriptor.Id), Is.SameAs(fileParameterDescriptor.Alias));
        }