Process() public method

public Process ( AddDbItemArgs args ) : void
args AddDbItemArgs
return void
    public void ShouldAddFirstVersion()
    {
      // arrange
      var processor = new AddVersion();
      var args = new AddDbItemArgs(new DbItem("home"), new DataStorage(Database.GetDatabase("master")));

      // act
      processor.Process(args);

      // assert
      args.DbItem.GetVersionCount("en").Should().Be(1);
    }
    public void ShouldAddVersionInTheGivenLanguage()
    {
      // arrange
      var processor = new AddVersion();
      var args = new AddDbItemArgs(new DbItem("home"), new DataStorage(Database.GetDatabase("master")), Language.Parse("fr-FR"));

      // act
      processor.Process(args);

      // assert
      args.DbItem.GetVersionCount("fr-FR").Should().Be(1);
    }
    public void ShouldAddFirstVersion()
    {
      // arrange
      var processor = new AddVersion();
      var args = new AddDbItemArgs(new DbItem("home"), new DataStorage());

      // act
      processor.Process(args);

      // assert
      args.DbItem.VersionsCount["en"].Should().Be(1);
    }