/// <summary> /// Class constructor. /// </summary> /// <param name="geometricProperty"></param> /// <param name="mappingResolver"></param> /// <param name="mainMatrix"></param> /// <param name="profileValidator"></param> /// <param name="time"></param> /// <param name="naturalFrequency"></param> public CalculateBeamVibration( IGeometricProperty <TProfile> geometricProperty, IMappingResolver mappingResolver, IBeamMainMatrix <TProfile> mainMatrix, IProfileValidator <TProfile> profileValidator, ITime time, INaturalFrequency naturalFrequency) : base(profileValidator, time, naturalFrequency, mainMatrix) { this._geometricProperty = geometricProperty; this._mappingResolver = mappingResolver; }
private void TestWhenInstantiateClassShouldThrowArgumentNullException( IGeometricProperty <TProfile> geometricProperty, IMappingResolver mappingResolver, IBeamMainMatrix <TProfile> mainMatrix, IProfileValidator <TProfile> profileValidator, ITime time, INaturalFrequency naturalFrequency) { // Act Action action = () => this._operationMock = new Mock <CalculateBeamVibration <TProfile> >( geometricProperty, mappingResolver, mainMatrix, profileValidator, time, naturalFrequency); // Assert action.Should().ThrowExactly <ArgumentNullException>(); }