protected override void Context()
 {
     _cloneManager = A.Fake <ICloneManagerForBuildingBlock>();
     _registerTask = A.Fake <IRegisterTask>();
     _calculationMethodRepository = A.Fake <ICoreCalculationMethodRepository>();
     sut = new BuildConfigurationFactory(_registerTask, _cloneManager, _calculationMethodRepository);
 }
Example #2
0
        public void CanCreateNumericProperties()
        {
            var config = BuildConfigurationFactory.CreateEmpty().AddTypeCreator <DefaultTypeCreator>()
                         .AddValueGenerator <NumericValueGenerator>().WriteLog <NumericPropertyModel>(_output.WriteLine);

            var actual = config.Create();

            actual.Should().NotBeNull();
        }