コード例 #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));
        }
コード例 #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));
        }
コード例 #3
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));
        }
コード例 #4
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));
        }